//1.state状态
const state = {
   showid:0,
    uname:'',
    cirecleImg:'',
}

const mutations = {
    show(state , id){
        state.showid = id;
   },
    userInfo(state, {uname , uimg}){
        state.uname = uname;
        state.cirecleImg = uimg;
   },

    userImg(state, uimg){
       state.cirecleImg = uimg;
   },

    userName(state, uname){
        state.uname = uname;
    },

}

const actions = {}

const getters = {}

//5.导出且注册当前模块
export default {
    //注册模块使当前模块成为待命名的区域  vue.cart.xxx
    namespaced: true,
    state,
    mutations,
    actions,
    getters

}